package com.easthome.mapper;

import com.easthome.entity.Manager;
import com.easthome.entity.UserInfo;
import org.apache.ibatis.annotations.Param;

/**
 * @author cxiaoy
 * @Date 2022/10/18 11:04
 */
public interface UserMapper {

    public UserInfo login(UserInfo user) ;

//    int checkUsername(String userName);
    boolean checkUsername(String userName);

    int insert(@Param("userinfo")UserInfo user);

    Manager loginM(Manager manager);
}
